import request from '@/utils/request'

// 查询车辆进场记录列表
export function listEnter(query) {
  return request({
    url: '/system/enter/list',
    method: 'get',
    params: query
  })
}

// 查询车辆进场记录详细
export function getEnter(id) {
  return request({
    url: '/system/enter/' + id,
    method: 'get'
  })
}

// 新增车辆进场记录
export function addEnter(data) {
  return request({
    url: '/system/enter',
    method: 'post',
    data: data
  })
}

// 修改车辆进场记录
export function updateEnter(data) {
  return request({
    url: '/system/enter',
    method: 'put',
    data: data
  })
}

// 删除车辆进场记录
export function delEnter(id) {
  return request({
    url: '/system/enter/' + id,
    method: 'delete'
  })
}

// 导出车辆进场记录
export function exportEnter(query) {
  return request({
    url: '/system/enter/export',
    method: 'get',
    params: query
  })
}

export  function getBackVideoPath(query){
  return request({
    url: '/system/enter/getBackVideoPath',
    method: 'get',
    params: query
  })
}

export function getEnterVideo(id) {
  return request({
    url: '/system/enter/getVideoPath?id='+id,
    method: 'get'
  })
}
